package com.app.backend.common.lock;

/**
 * @program: CallbackDistribute
 * @description: 分布式锁回调方法
 * @author: Zhun.Xiao
 * @create: 2020-02-07 21:12
 **/
public interface CallbackDistribute {

    /**
     * 获得锁时
     *
     * @return
     * @throws InterruptedException
     */
    Object onGetLock() throws InterruptedException;

    /**
     * 超时时
     *
     * @return
     * @throws InterruptedException
     */
    Object onTimeOut() throws InterruptedException;


}